﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ScenarioOptimizer
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        Facade _facade = new Facade();

        private void btnAddMember_Click(object sender, EventArgs e)
        {

            _facade.AddTeamMember(this.tbTeamList);
        }

        private void btnRemoveMember_Click(object sender, EventArgs e)
        {
            _facade.RemoveTeamMember(tbTeamList.SelectedText);
        }

        private void btnMakeList_Click(object sender, EventArgs e)
        {
            _facade.CreateOptimalScenarioList(tbTeamList, tbOptimizedList);
        }

        private void btnExportList_Click(object sender, EventArgs e)
        {
            _facade.ExportOptimalScenarioList(tbOptimizedList);
        }
    }
}
